6b0a0bcdbaf2047abb43bcece7bbc856fbbed8ba,wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WRadioButtonRenderer.java,WRadioButtonRenderer,doRender,#WComponent#WebXmlRenderContext#,25

Before Change


		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendAttribute("groupName", button.getGroupName());
		xml.appendAttribute("value", WebUtilities.encode(value));
		xml.appendOptionalAttribute("disabled", button.isDisabled(), "true");
		xml.appendOptionalAttribute("hidden", button.isHidden(), "true");
		xml.appendOptionalAttribute("required", button.isMandatory(), "true");
		xml.appendOptionalAttribute("readOnly", button.isReadOnly(), "true");
		xml.appendOptionalAttribute("selected", button.isSelected(), "true");
		xml.appendOptionalAttribute("submitOnChange", button.isSubmitOnChange(), "true");
		xml.appendOptionalAttribute("tabIndex", component.hasTabIndex(), component.getTabIndex());
		xml.appendOptionalAttribute("toolTip", button.getToolTip());
		xml.appendOptionalAttribute("accessibleText", button.getAccessibleText());
		xml.appendOptionalAttribute("isNull", isNull, "true");
		xml.appendEnd();
	}

After Change


	public void doRender(final WComponent component, final WebXmlRenderContext renderContext) {
		WRadioButton button = (WRadioButton) component;

		XmlStringBuilder xml = renderContext.getWriter();
		boolean readOnly = button.isReadOnly();
		String value = button.getValue();

		xml.appendTagOpen("ui:radiobutton");
		xml.appendAttribute("id", component.getId());
		xml.appendOptionalAttribute("class", component.getHtmlClass());
		xml.appendOptionalAttribute("track", component.isTracking(), "true");
		xml.appendOptionalAttribute("hidden", button.isHidden(), "true");
		if (readOnly) {
			xml.appendAttribute("readOnly", "true");
		} else {
			xml.appendOptionalAttribute("disabled", button.isDisabled(), "true");
			xml.appendOptionalAttribute("required", button.isMandatory(), "true");
			xml.appendOptionalAttribute("submitOnChange", button.isSubmitOnChange(), "true");
			xml.appendOptionalAttribute("tabIndex", component.hasTabIndex(), component.getTabIndex());
			xml.appendOptionalAttribute("toolTip", button.getToolTip());
			xml.appendOptionalAttribute("accessibleText", button.getAccessibleText());
			// Check for null option (ie null or empty). Match isEmpty() logic.
			boolean isNull = value == null ? true : (value.length() == 0);
			xml.appendOptionalAttribute("isNull", isNull, "true");
			xml.appendAttribute("groupName", button.getGroupName());
		}
		xml.appendAttribute("value", WebUtilities.encode(value));
		xml.appendOptionalAttribute("selected", button.isSelected(), "true");